package com.spring.security.client11;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.oauth2.client.EnableOAuth2Sso;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@EnableOAuth2Sso
@RestController
public class ApplicationRun {


    public static void main(String[] args) {
        SpringApplication.run(ApplicationRun.class,args);
    }


    @RequestMapping("/aa")
    public Object aa(Authentication user){
        return user;
    }
}
